#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File   : dataSerializer.py
# @Email  : xuexia_xu@feidee.com
# @Time   : 2024/5/11 15:48
# @Desc   : 编写序列化器

from rest_framework import serializers
from polls.models import Subject, Teacher


class SubjectSerializer(serializers.ModelSerializer):
    class Meta:
        model = Subject
        fields = '__all__'


class TeacherSerializer(serializers.ModelSerializer):
    class Meta:
        model = Teacher
        # exclude = ('subject',)
        fields = '__all__'
